#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xextproto
pkgver=7.3.0
pkgrel=1
pkgdesc="X11 various extension wire protocol"
arch=('any')
license=('custom')
makedepends=('xmlto' 'xorg-util-macros' 'docbook-xsl')
url="https://xorg.freedesktop.org/"
source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha256sums=('f3f4b23ac8db9c3a9e0d8edb591713f3d70ef9c3b175970dd8823dfc92aa5bb0')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
